<template>
    <div class="login">
        <header-title :city="city" :id="id">手机号登录</header-title>
        <div class="login-msg">
            <p>登录后可同步您的学习记录</p>
            <p>未注册过的手机号将自动注册为驾路通用户</p>
        </div>
        <div class="wapper">
            <div class="phone">
                <input type="text" placeholder="请输入你的手机号">
            </div>
            <div class="text-msg">
                <input type="text" placeholder="请输入验证码">
                <button class="btn">获取验证码</button>
            </div>
        </div>
        <div class="msg">
            <div class="msg-box">
                <div class="check">
                    <input type="checkbox">

                </div>
            <p>我已阅读并同意<span>《用户服务协议》</span>和<span>《隐私协议》</span>，未注册的手机号将自动创建驾路通账号</p>
            </div>
            
        </div>

        <div class="login-btn">
            <div class="login-btn-box">
                <button class="btn">登录</button>
            </div>
        </div>

<div class="footer">
    <p class="way">-其他登录方式-</p>
    <div class="wechat">
        <div class="wei">
            <img src="../assets/weixin.png" alt="">
        </div>
    </div>
</div>
        

    </div>
</template>

<script>
import HeaderTitle from '../components/HeaderTitle.vue'
export default {
    name:"Login",
    components:{
        HeaderTitle
    },
   
  data() {
    return {
         city:'',
    id:''
    }
   
  },
   mounted() {
    this.city = this.$route.query.city
    this.id = this.$route.query.id
  },
}
</script>
<style lang="scss" scoped>
    .login {
        width: 100%;
        
        .login-msg {
            width: 100%;
            height: 150px;
            // background-color: red;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            line-height: 250%;
            p:nth-child(1) {
                font-size: 24px;
                font-weight: 600;
            }
            p:nth-child(2) {
                font-size: 14px;
                color: #ccc;
            }
        }
        .wapper {
            width: 100%;
            height: 100px;
            // background-color: red;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            .phone {
                width: 90%;
                height: 40px;
                border-radius: 5px;
                display: flex;
                overflow: hidden;
                input {
                    width: 100%;
                    padding-left: 10px;
                font-size: 14px;
                    
                background-color: rgba(204, 204, 204 ,.3);
                    outline: none;
                    border: 0;
                }
            }
            .text-msg {
                width: 90%;
                height: 40px;
                background-color: #fff;
                border-radius: 5px;
                display: flex;
                overflow: hidden;
                input {
                    flex-grow: 2;
                    border: 0;
                    outline: none;
                padding-left: 10px;
                background-color: rgba(204, 204, 204 ,.3);
                font-size: 14px;

                }
                .btn {
                    flex-grow: 1;
                    border: 0;
                background-color: rgba(204, 204, 204 ,.3);
                    color: #4070ff;
                font-size: 16px;

                }
            }
        }
        .msg {
            width: 100%;
            height: 80px;
            // background-color: red;
            margin-top: 10px;
            display: flex;
            justify-content: center;
            .msg-box {
                width: 90%;
                display: flex;
                align-content: center;
                justify-content: center;
                padding-top: 20px;
                .check {
                    width: 15px;
                    height: 15px;
                    display: flex;
                    input {
                        width: 100%;
                        height: 100%;
                    }
                }
                p {
                    font-size: 13px;
                    padding-left: 5px;
                    font-weight: 500;
                    span {
                        color: #4070ff;
                        font-weight: 500;
                    }
                }
                
            }
        }
        .login-btn {
            width: 100%;
            height: 50px;
            // background-color: red;
            margin-top: 20px;
            display: flex;
            justify-content: center;
            .login-btn-box {
                width: 90%;
                height: 100%;
                display: flex;
                border-radius: 10px;
                overflow: hidden;
                .btn {
                    width: 100%;
                    height: 100%;
                background-color: #4070ff;
                    color: #fff;
                    font-size: 20px;
                    border: 0;
                }
            }
        }
        .footer {
            width: 100%;
            height: 150px;
            position: fixed;
            bottom: 0;
            left: 0;
            // background-color: red;
            text-align: center;
            color: rgb(170, 163, 163);
            font-size: 14px;
            .wechat {
                width: 100%;
                height: 80px;
                display: flex;
                margin-top: 10px;
                align-items: center;
                justify-content: center;
                .wei {
                    width: 60px;
                    height: 60px;
                    background-color: rgba(204, 204, 204,.3);
                    border-radius: 50%;
                    line-height: 60px;
                    img {
                        width: 50px;
                        height: 50px;
                        vertical-align: middle;
                    }
                }

            }
        }
    }
</style>